﻿<!DOCTYPE html>
<html>
<head>
<title> JavaScript函数参数</title>
</head>
<body>
<script>
function sum(x){
    console.info(arguments[0]+""+arguments[1]);
    return x+1;
}
//console.log(sum(1));
//console.log(sum("1"));
//console.log(sum());
console.log(sum(2,1));
</script> 
</body>
</html> 
